package com.spring.design.builder;

/**
 * JDK源码：StringBuilder
 */
public class Client {
    public static void main(String[] args) {
        //建普通房子
        ConcreteBuilder puton = new ConcreteBuilder();
        //把房子交给指挥者
        Director director = new Director(puton);
        //建好后返回房子
        Product product = director.couPro();

        System.out.println("---------");

        //建高楼
        HighBuilder highBuilder = new HighBuilder();
        director.setConcreteBuilder(highBuilder);
        director.couPro();

    }
}
